package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetalsMapper {
    void insert(@Param("lo") List<OrderDetail> lo);

    @Select("SELECT * FROM order_detail WHERE order_id=#{orderId}")
    public List<OrderDetail> selectByOrderId(Long orderId);


    @Select("SELECT * from order_detail where order_id=#{orderId}")
    public List<OrderDetail> getByOrderId(Long orderId);
}
